<%@page contentType="text/html;charset=UTF-8"%>
<% request.setCharacterEncoding("UTF-8"); %>
<HTML>
<HEAD>
<TITLE>Result</TITLE>
</HEAD>
<BODY>
<H1>Result</H1>

<jsp:useBean id="SampleJSPid" scope="session" class="sample.cics.CustomerImpl" />

<%
String method = request.getParameter("method");
int methodID = 0;
if (method == null) methodID = -1;

if(methodID != -1) methodID = Integer.parseInt(method);
boolean gotMethod = false;

try {
switch (methodID){ 
case 2:
        gotMethod = true;
        String postalCode_1id=  request.getParameter("postalCode31");
        java.lang.String postalCode_1idTemp  = postalCode_1id;
        String country_2id=  request.getParameter("country33");
        java.lang.String country_2idTemp  = country_2id;
        String street_3id=  request.getParameter("street35");
        java.lang.String street_3idTemp  = street_3id;
        String recordShortDescription_4id=  request.getParameter("recordShortDescription37");
        java.lang.String recordShortDescription_4idTemp  = recordShortDescription_4id;
        String city_5id=  request.getParameter("city39");
        java.lang.String city_5idTemp  = city_5id;
        String customerNumber_6id=  request.getParameter("customerNumber41");
        java.lang.String customerNumber_6idTemp  = customerNumber_6id;
        String phone_7id=  request.getParameter("phone43");
        java.lang.String phone_7idTemp  = phone_7id;
        String recordName_8id=  request.getParameter("recordName45");
        java.lang.String recordName_8idTemp  = recordName_8id;
        String firstName_9id=  request.getParameter("firstName47");
        java.lang.String firstName_9idTemp  = firstName_9id;
        String lastName_10id=  request.getParameter("lastName49");
        java.lang.String lastName_10idTemp  = lastName_10id;
        %>
        <jsp:useBean id="sample1cics1data1CustomerInfo_0id" scope="session" class="sample.cics.data.CustomerInfo" />
        <%
        sample1cics1data1CustomerInfo_0id.setPostalCode(postalCode_1idTemp);
        sample1cics1data1CustomerInfo_0id.setCountry(country_2idTemp);
        sample1cics1data1CustomerInfo_0id.setStreet(street_3idTemp);
        sample1cics1data1CustomerInfo_0id.setRecordShortDescription(recordShortDescription_4idTemp);
        sample1cics1data1CustomerInfo_0id.setCity(city_5idTemp);
        sample1cics1data1CustomerInfo_0id.setCustomerNumber(customerNumber_6idTemp);
        sample1cics1data1CustomerInfo_0id.setPhone(phone_7idTemp);
        sample1cics1data1CustomerInfo_0id.setRecordName(recordName_8idTemp);
        sample1cics1data1CustomerInfo_0id.setFirstName(firstName_9idTemp);
        sample1cics1data1CustomerInfo_0id.setLastName(lastName_10idTemp);
        sample.cics.data.CustomerInfo getCustomer2mtemp = SampleJSPid.getCustomer(sample1cics1data1CustomerInfo_0id);
if(getCustomer2mtemp == null){
%>
<%=getCustomer2mtemp %>
<%
}else{
%>
<TABLE>
<TR>
<TD COLSPAN="3" ALIGN="LEFT">returnp:</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">postalCode:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typepostalCode5 = getCustomer2mtemp.getPostalCode();
        String tempResultpostalCode5 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typepostalCode5));
        %>
        <%= tempResultpostalCode5 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">country:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typecountry7 = getCustomer2mtemp.getCountry();
        String tempResultcountry7 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typecountry7));
        %>
        <%= tempResultcountry7 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">street:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typestreet9 = getCustomer2mtemp.getStreet();
        String tempResultstreet9 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typestreet9));
        %>
        <%= tempResultstreet9 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">recordShortDescription:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typerecordShortDescription11 = getCustomer2mtemp.getRecordShortDescription();
        String tempResultrecordShortDescription11 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typerecordShortDescription11));
        %>
        <%= tempResultrecordShortDescription11 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">city:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typecity13 = getCustomer2mtemp.getCity();
        String tempResultcity13 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typecity13));
        %>
        <%= tempResultcity13 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">customerNumber:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typecustomerNumber15 = getCustomer2mtemp.getCustomerNumber();
        String tempResultcustomerNumber15 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typecustomerNumber15));
        %>
        <%= tempResultcustomerNumber15 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">phone:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typephone17 = getCustomer2mtemp.getPhone();
        String tempResultphone17 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typephone17));
        %>
        <%= tempResultphone17 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">recordName:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typerecordName19 = getCustomer2mtemp.getRecordName();
        String tempResultrecordName19 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typerecordName19));
        %>
        <%= tempResultrecordName19 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">firstName:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typefirstName21 = getCustomer2mtemp.getFirstName();
        String tempResultfirstName21 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typefirstName21));
        %>
        <%= tempResultfirstName21 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">lastName:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
java.lang.String typelastName23 = getCustomer2mtemp.getLastName();
        String tempResultlastName23 = org.eclipse.jst.ws.util.JspUtils.markup(String.valueOf(typelastName23));
        %>
        <%= tempResultlastName23 %>
        <%
}%>
</TD>
<TR>
<TD WIDTH="5%"></TD>
<TD COLSPAN="2" ALIGN="LEFT">bytes:</TD>
<TD>
<%
if(getCustomer2mtemp != null){
byte[] typebytes27 = getCustomer2mtemp.getBytes();
        String tempbytes27 = "[";        for(int ibytes27=0;ibytes27< typebytes27.length;ibytes27++){
            tempbytes27 = tempbytes27 + typebytes27[ibytes27] + ",";
        }
        int lengthbytes27 = tempbytes27.length();
        tempbytes27 = tempbytes27.substring(0,(lengthbytes27 - 1)) + "]";
        %>
        <%=tempbytes27%>
        <%
}%>
</TD>
</TABLE>
<%
}
break;
}
} catch (Exception e) { 
%>
exception: <%= e %>
<%
return;
}
if(!gotMethod){
%>
result: N/A
<%
}
%>
</BODY>
</HTML>